<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>测试页面</title>
  <link rel="stylesheet" href="css/style.css">
  <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
  <script>
    $(document).ready(function () {
      $("#b01").click(function () {
        htmlobj = $.ajax({ url: "http://www.baidu.com", async: false });
        $("#myDiv").html(htmlobj.responseText);
      });
    });
  </script>
</head>

<body>
  <p>这是一个测试页面111</p>
  <button id='b01'>百度</button>
  <div id="myDiv"></div>
</body>

</html>